package com.ruoyi.household.service;

import com.ruoyi.system.api.domain.ResidentialQuarters;

import java.util.List;

/**
 * 小区CRUDService接口
 * 
 * @author ruoyi
 * @date 2022-10-01
 */
public interface IResidentialQuartersService 
{
    /**
     * 根据楼栋名查询
     *
     * @param rQName 楼栋CRUD主键
     * @return 楼栋CRUD
     */
    public ResidentialQuarters selectResidentialQuartersByName(String rQName);

    /**
     * 查询小区CRUD
     * 
     * @param id 小区CRUD主键
     * @return 小区CRUD
     */
    public ResidentialQuarters selectResidentialQuartersById(Long id);

    /**
     * 查询小区CRUD列表
     * 
     * @param residentialQuarters 小区CRUD
     * @return 小区CRUD集合
     */
    public List<ResidentialQuarters> selectResidentialQuartersList(ResidentialQuarters residentialQuarters);

    /**
     * 新增小区CRUD
     * 
     * @param residentialQuarters 小区CRUD
     * @return 结果
     */
    public int insertResidentialQuarters(ResidentialQuarters residentialQuarters);

    /**
     * 修改小区CRUD
     * 
     * @param residentialQuarters 小区CRUD
     * @return 结果
     */
    public int updateResidentialQuarters(ResidentialQuarters residentialQuarters);

    /**
     * 批量删除小区CRUD
     * 
     * @param ids 需要删除的小区CRUD主键集合
     * @return 结果
     */
    public int deleteResidentialQuartersByIds(Long[] ids);

    /**
     * 删除小区CRUD信息
     * 
     * @param id 小区CRUD主键
     * @return 结果
     */
    public int deleteResidentialQuartersById(Long id);
}
